﻿@model IEnumerable<ToWaTimeReportMVC4.Models.Rapport>

@{
    ViewBag.Title = "DisplaySearchResult";
}

<h2>DisplaySearchResult</h2>

<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.ConsultantName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.total)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.overtime)
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink(item.ConsultantName, "DisplaySingelReport", new { consultId = item.ConsultantId, startDate = ViewBag.StartDate, endDate = ViewBag.EndDate, normal = ViewBag.Normal })
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.total)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.overtime)
        </td>
    </tr>
}

</table>
